
var c= 0;

function print(){
    console.log("c="+c);
}

function plus(callback){
    setTimeout(function() {
        c++;
        callback();
    }, 2000);
}

print();
console.log("等待一会.....");
plus(print);